package com.yx.pc.api.service.impl;

import com.yx.pc.api.service.PcTdMessageService;
import com.yx.system.dao.TdMessageMapper;
import com.yx.system.entity.TdMessage;
import com.yx.system.service.TdMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class PcTdMessageServiceImpl implements PcTdMessageService {

    @Autowired
    private TdMessageMapper tdMessageMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tdMessageMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TdMessage record) {
        return tdMessageMapper.insert(record);
    }

    @Override
    public int insertSelective(TdMessage record) {
        return tdMessageMapper.insertSelective(record);
    }

    @Override
    public TdMessage selectByPrimaryKey(Integer id) {
        return tdMessageMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TdMessage record) {
        return tdMessageMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TdMessage record) {
        return tdMessageMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<TdMessage> queryList(Map<String, Object> map) {
        return tdMessageMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return tdMessageMapper.queryTotal(map);
    }
}
